package com.mikhailenko.transportMVC.service;

import java.util.List;

import com.mikhailenko.transportMVC.exeption.CriteriaNotFoundExeption;
import com.mikhailenko.transportMVC.model.Criteria;

public interface CriteriaService {
	public Criteria create(Criteria criteria);

	public Criteria delete(int id) throws CriteriaNotFoundExeption;

	public List<Criteria> findAll();

	public Criteria update(Criteria criteria) throws CriteriaNotFoundExeption;

	public Criteria findById(int id);
	
	public List<Criteria> findByGroup(int id);
}
